#include "stroke.h"

Stroke::Stroke()
{
    m_r = 0;
    m_g = 0;
    m_b = 0;
}

void Stroke::addPoint(QPoint point){
    m_points.append(point);
}

void Stroke::addPoint(int x, int y){
    QPoint newPoint = QPoint(x,y);
    m_points.append(newPoint);
}

int Stroke::getR(){
    return m_r;
}

int Stroke::getG(){
    return m_g;
}

int Stroke::getB(){
    return m_b;
}

int Stroke::getPenWidth(){
    return m_penWidth;
}

QDateTime Stroke::getDateTime(){
    return m_timestamp;
}

void Stroke::setR(int r){
    m_r = r;
}

void Stroke::setG(int g){
    m_g = g;
}

void Stroke::setB(int b){
    m_b = b;
}

void Stroke::setColor(int r, int g, int b){
    m_r = r;
    m_g = g;
    m_b = b;
}

void Stroke::setPenWidth(int width){
    m_penWidth = width;
}

void Stroke::setDateTime(QDateTime timestamp){
    m_timestamp = timestamp;
}
